package com.wz.one;

/**
 * @description: 我要一个高智商的人
 * @author: WZ
 * @create: 2019-02-15 21:17
 **/

public class SmartManBuilder implements IBuildHuman{

    Human human;

    public SmartManBuilder(){
        human = new Human();
    }

    @Override
    public void buildHead() {
        human.setHand("智商300的头脑");
    }

    @Override
    public void buildBody() {
        human.setBody("新的身体");
    }

    @Override
    public void buildHand() {
        human.setHand("新的手");
    }

    @Override
    public void buildfoot() {
        human.setFoot("新的脚");
    }

    @Override
    public Human createHuman() {
        return human;
    }
}
